/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.inysa.TablasEntidades;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author chiconestor
 */
@Entity
@Table(name = "PersonalTurnos", catalog = "TareosBD", schema = "dbo")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "PersonalTurnos.findAll", query = "SELECT p FROM PersonalTurnos p"),
    @NamedQuery(name = "PersonalTurnos.findByIdTurno", query = "SELECT p FROM PersonalTurnos p WHERE p.idTurno = :idTurno"),
    @NamedQuery(name = "PersonalTurnos.findByTurno", query = "SELECT p FROM PersonalTurnos p WHERE p.turno = :turno"),
    @NamedQuery(name = "PersonalTurnos.findByDetalle", query = "SELECT p FROM PersonalTurnos p WHERE p.detalle = :detalle"),
    @NamedQuery(name = "PersonalTurnos.findByCodUsu", query = "SELECT p FROM PersonalTurnos p WHERE p.codUsu = :codUsu"),
    @NamedQuery(name = "PersonalTurnos.findByFechaMod", query = "SELECT p FROM PersonalTurnos p WHERE p.fechaMod = :fechaMod")})
public class PersonalTurnos implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "idTurno", nullable = false)
    private Integer idTurno;
    @Size(max = 1)
    @Column(name = "Turno", length = 1)
    private String turno;
    @Size(max = 100)
    @Column(name = "Detalle", length = 100)
    private String detalle;
    @Size(max = 10)
    @Column(name = "CodUsu", length = 10)
    private String codUsu;
    @Column(name = "FechaMod")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fechaMod;

    public PersonalTurnos() {
    }

    public PersonalTurnos(Integer idTurno) {
        this.idTurno = idTurno;
    }

    public Integer getIdTurno() {
        return idTurno;
    }

    public void setIdTurno(Integer idTurno) {
        this.idTurno = idTurno;
    }

    public String getTurno() {
        return turno;
    }

    public void setTurno(String turno) {
        this.turno = turno;
    }

    public String getDetalle() {
        return detalle;
    }

    public void setDetalle(String detalle) {
        this.detalle = detalle;
    }

    public String getCodUsu() {
        return codUsu;
    }

    public void setCodUsu(String codUsu) {
        this.codUsu = codUsu;
    }

    public Date getFechaMod() {
        return fechaMod;
    }

    public void setFechaMod(Date fechaMod) {
        this.fechaMod = fechaMod;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idTurno != null ? idTurno.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PersonalTurnos)) {
            return false;
        }
        PersonalTurnos other = (PersonalTurnos) object;
        if ((this.idTurno == null && other.idTurno != null) || (this.idTurno != null && !this.idTurno.equals(other.idTurno))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.inysa.TablasEntidades.PersonalTurnos[ idTurno=" + idTurno + " ]";
    }
    
}
